<?php
// +----------------------------------------------------------------------
// | 有理想的地方，地狱都是天堂。
// +----------------------------------------------------------------------
// | Copyright @ df81.com 版权所有
// +----------------------------------------------------------------------
// | 作者: 南国老符 邮箱：1062129401@qq.com
// +----------------------------------------------------------------------

namespace app\admin\validate;
use think\Validate;

class Area extends Validate{
	protected $rule = [
	    'title' => 'require|length:1,50',
	    'abbreviation' => 'require|length:1,50',
		'urlroute' => 'require|alpha|length:1,20|unique:area',
	];
	protected $message = [
		'title' => 'm_require_area',
		'abbreviation' => 'y_require_abbreviation',
		'urlroute' => 'c_area_urlroute',
	];
}